package com.xbfinal.eduorder.client;

import com.xbfinal.commonUtils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Title: EduClient
 * @Author 笑霸fianl
 * @Package com.xbfinal.eduorder.client
 * @Date 2023/3/11 12:40
 * @描述: 远程调用edu
 */
@Component
@FeignClient("service-edu")//远程调用的服务名字
public interface EduClient {

    //调用的接口地址
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);


}
